<?php $form->setDefaults($filter->array); ?>


<form name="form_filer_avaliacao"
      id="form_filer_avaliacao"
      action="avaliacao/filter"
      method="post"
      class="form-horizontal"> 

<fieldset>
	<legend>Filtro</legend>
		<div class="control-group">
		<label class="control-label" for="filter_nm_avaliacao"><?php echo $form['nm_avaliacao']->getWidget()->getLabel() ?></label>
		<div class="controls">
			<?php
	        	echo $form['nm_avaliacao']->render(
	        		array(
	        			'name' => 'filter[nm_avaliacao]',
	        			'placeholder' => $form['nm_avaliacao']->getWidget()->getLabel()
	        		)
	        	)
	        ?>
		</div>
	</div>
		<div class="control-group">
		<label class="control-label" for="filter_st_avaliacao"><?php echo $form['st_avaliacao']->getWidget()->getLabel() ?></label>
		<div class="controls">
			<?php
	        	echo $form['st_avaliacao']->render(
	        		array(
	        			'name' => 'filter[st_avaliacao]',
	        			'placeholder' => $form['st_avaliacao']->getWidget()->getLabel()
	        		)
	        	)
	        ?>
		</div>
	</div>
		<div class="control-group">
		<label class="control-label" for="filter_created_at"><?php echo $form['created_at']->getWidget()->getLabel() ?></label>
		<div class="controls">
			<?php
	        	echo $form['created_at']->render(
	        		array(
	        			'name' => 'filter[created_at]',
	        			'placeholder' => $form['created_at']->getWidget()->getLabel()
	        		)
	        	)
	        ?>
		</div>
	</div>
		<div class="control-group">
		<label class="control-label" for="filter_updated_at"><?php echo $form['updated_at']->getWidget()->getLabel() ?></label>
		<div class="controls">
			<?php
	        	echo $form['updated_at']->render(
	        		array(
	        			'name' => 'filter[updated_at]',
	        			'placeholder' => $form['updated_at']->getWidget()->getLabel()
	        		)
	        	)
	        ?>
		</div>
	</div>
	</fieldset>

<div class="form-actions">
	<button class="btn btn-primary" type="submit">Filtrar</button>
	<?php
    	echo link_to(
    		':: Limpar ::',
    		$sf_context->getModuleName().'/filter',
    		array('class'=>'btn')
    	);
	?>
</div>

</form>